package org.geekbang.projects.config.source;

import org.eclipse.microprofile.config.spi.ConfigSource;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

/**
*   jvm环境变量
* @author : lsq
*/
public class SystemConfigSource extends AbstractConfigSource  {


	public static final ConfigSource INSTANCE = new SystemConfigSource();

	public SystemConfigSource() {
		super(400, "System properties");
	}

	@Override
	protected Map<String, String> getSource() throws Throwable {
		return new HashMap(System.getProperties());
	}
}
